﻿<Window x:Class="GoogleAnalyticsReport.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Googel Analytics" Height="350" Width="525" Loaded="Window_Loaded">
    <StackPanel Orientation="Vertical">
        <Grid Margin="10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="23"/>
                <RowDefinition Height="23"/>
            </Grid.RowDefinitions>
            <TextBlock Text="UserName" VerticalAlignment="Center"/>
            <TextBlock Text="Password" VerticalAlignment="Center" Grid.Column="1" Margin="10,0,0,0"/>
            <TextBox Name="UserNameTextbox" Grid.Row="1" Height="23" Text="jaysong1986@gmail.com"/>
            <TextBox Name="PasswordTextbox" Grid.Row="1" Grid.Column="1" Margin="10,0,0,0" Text="jaysong19861010"/>
            <Button Grid.Row="2" Content="Get Profiles" Width="78" HorizontalAlignment="Left" Height="23" VerticalAlignment="Bottom" Grid.Column="2" Margin="10,0,0,0" Click="Button_Click" />
        </Grid>
        <Expander Header="Profiles IDs" VerticalAlignment="Stretch" Margin="10,0,0,0" Name="Expander1">
            <StackPanel Orientation="Vertical">
                <ListView ItemsSource="{Binding}" Name="ProfileListView" Width="300" HorizontalAlignment="Left">
                    <ListView.View>
                        <GridView>
                            <GridViewColumn Header="Title" DisplayMemberBinding="{Binding Path=Title}"/>
                            <GridViewColumn Header="Profile ID" DisplayMemberBinding="{Binding Path=ProfileID}"/>
                        </GridView>
                    </ListView.View>
                </ListView>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="110"/>
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="23"/>
                        <RowDefinition Height="23"/>
                    </Grid.RowDefinitions>
                    <TextBlock Text="Start Time" VerticalAlignment="Center"/>
                    <TextBlock Text="End Time" VerticalAlignment="Center" Grid.Column="1" Margin="10,0,0,0"/>
                    <DatePicker Grid.Row="1" Name="StartDateDatepicker"/>
                    <DatePicker Grid.Row="1" Grid.Column="1" Margin="10,0,0,0" Name="EndDateDatepicker"/>
                    <Button Content="Gen Report" Grid.Row="1" Grid.Column="2" Width="78" HorizontalAlignment="Left" Margin="10,0,0,0" Name="GenReportButton" IsEnabled="False" Click="GenReportButton_Click" />
                </Grid>
            </StackPanel>
        </Expander>
    </StackPanel>
    
</Window>
